/**
 * 拆分为二维数组
 * @param {*} ary 原数组
 * @param {*} eachNum 每个二维数组的数量
 */
export const twoDimensionalAry = (ary, eachNum) => {
  let copyAry = JSON.parse(JSON.stringify(ary));
  let twoDimensionalAry = [];
  while (copyAry.length) {
    twoDimensionalAry.push(copyAry.splice(0, eachNum));
  }
  return twoDimensionalAry;
};
